package com.itboy.mall.wms.warepurchasedetail.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 采购需求
对象 mall_ware_purchase_detail
 *
 * @author itboy
 * @date 2021-08-10
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mall_ware_purchase_detail")
public class MallWarePurchaseDetail implements Serializable {

    private static final long serialVersionUID=1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 采购单id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long purchaseId;

    /**
     * 采购商品id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;

    /**
     * 采购数量
     */
    private Long skuNum;

    /**
     * 采购金额
     */
    private BigDecimal skuPrice;

    /**
     * 仓库id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    private Long wareId;

    /**
     * 状态[0新建，1已分配，2正在采购，3已完成，4采购失败]
     */
    private Integer status;

}
